**# Bookmark #1 Setting

*Windows
global root  = "G:/Dropbox/Environmental Injustice/Empirical"
global rawdata = "$root/rawdata"
global workdata = "$root/workdata"
global results = "$root/results"
global outfile = "$root/outfile"

**# Bookmark #2 Regression

use "$outfile/Table S26.dta",clear

reghdfe migrant c.below_college#c.post2005,absorb(i.IID2016 i.regioncode#i.year) cluster(i.procode i.year)
outreg2 using "Table S26.xls", keep(c.below_college#c.post2005) replace ///
addtext(Indiviual FE, "YES", Year FE, "YES", Region-by-Year FE, "YES", Province-by-Year FE, "NO")

reghdfe migrant c.below_college#c.post2005, absorb(i.IID2016 i.procode#i.year) cluster(i.procode i.year)
outreg2 using "Table S26.xls", keep(c.below_college#c.post2005) append ///
addtext(Indiviual FE, "YES", Year FE, "YES", Region-by-Year FE, "NO",  Province-by-Year FE, "YES")

reghdfe migrant c.below_highschool#c.post2005, absorb(i.IID2016 i.regioncode#i.year) cluster(i.procode i.year)
outreg2 using "Table S26.xls", keep(c.below_highschool#c.post2005) append ///
addtext(Indiviual FE, "YES", Year FE, "YES", Region-by-Year FE, "YES", Province-by-Year FE, "NO") 

reghdfe migrant c.below_highschool#c.post2005, absorb(i.IID2016 i.procode#i.year) cluster(i.procode i.year)
outreg2 using "Table S26.xls", keep(c.below_highschool#c.post2005) append ///
addtext(Indiviual FE, "YES", Year FE, "YES", Region-by-Year FE, "NO",  Province-by-Year FE, "YES") 